<link href="/Static/mobile/css/weui.min.css" rel="stylesheet">
<style>
.oneline{
	overflow: hidden;
	text-overflow:ellipsis;
	white-space: nowrap;
}
.members_con {
    margin: 1%;
}
.weui-media-box{
	padding:5px;
}
.weui-media-box_appmsg .weui-media-box__hd {
    margin-right: .8em;
    width: 100px;
    height: 100px;
    line-height: 100px;
    text-align: center;
}
.weui-media-box__title{
	font-size:15px;
}
.weui-media-box__desc{
	font-size:15px;
	color:#e6282c;
}
.weui-media-box_appmsg {
    -webkit-box-align: stretch; 
    -webkit-align-items: stretch; 
    align-items: stretch; 
}

</style>
<div class="members_con">
	<?php foreach($gtype as $k=>$type){?>

		<?php if(!empty($datalist[$k])) { ?>
		<section class="mlist_nav" style="margin-top:10px;background-color:#000;">
			<span>
			<a class="fl" style="color:#fff;margin-left:10px;font-size:14px;border-bottom: 0;font-weight:bold;" href="/mobile/goods/lists/?orderby=<?php echo get('orderby');?>&gtype_id=<?php echo $k;?>"><?php echo $gtype[$k]['gtype_name']; ?></a>
			<a class="fr" style="color:#fff;margin-right:15px;font-size:14px;border-bottom: 0;" href="/mobile/goods/lists/?orderby=<?php echo get('orderby');?>&gtype_id=<?php echo $k;?>">更多></a>
			</span>
		</section>
		
		<section id="J-listgoods" class="mlist_goods newlist avr">
				<ul class="clearfix">
				
					<?php foreach($datalist[$k] as $k=>$v){?>
					<li style="position: relative;" class="g-box por">
						<section>
							<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>">
							<img src="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640"  onerror="javascript:this.src='__STATIC__mobile/images/goods.jpg';">
							</a>
						</section>
						<section class="g-flex">
							<div class="goods-detail oneline">
								<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
								<p class="listsgoods-group"></p>
							</div>
							<?php if($memberinfo['grade_id']==1) { ?>
								<p>
									<b> <em>¥</em> <?php echo $v['shop_price'];?></b> 
									<span class="original_price">会员价¥<?php echo $v['grade2_price'];?></span>
								</p>
							<?php }else{ ?>
								<p>
									<b> <em>¥</em> <?php echo $v['shop_price'];?></b> 
									<span class="original_price"><s>¥<?php echo $v['market_price'];?></s></span>
								</p>
							<?php } ?>
							
						</section> 
		
					</li>
				<?php } } ?>
					
				</ul>
			</section>
			
			<!--  
		
			<section class="members_goodspic">
				<ul>
				
				<?php foreach($vv as $k=>$v){?>
				
				
					<li  class="biggoods">
					<a class="goodsimg" href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>">
					<img data-original="<?php echo C("UPYUN_DOMAIN").$v['goods_pic'];?>!/fw/640" class="lazyload" width="100%"  onerror="javascript:this.src='__STATIC__mobile/images/goods.jpg';">
					</a>
						<section class="members_goodsimg_name rename clearfix" >
							<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>"><?php echo $v['goods_name'];?></a>
							 <span> 
							<span class="yen">&yen;</span><?php echo $v['shop_price'];?>
							 <span class="original_price">原价：<s>&yen;<?php echo $v['market_price'];?></s></span>
							</span>
						</section>
						<a href="/mobile/goods/index/?goods_id=<?php echo $v['goods_id'];?>" style="position:absolute;right:15px;bottom:15px;background:#e6207a;"  class="weui-btn weui-btn_mini weui-btn_primary">购买</a>
		
					</li>
							
				<?php } ?>		
					
				</ul>
			</section>
			-->
			
			
		<?php } ?>	
		

</div>